package com.xiaotu.model;

import com.xiaotu.handler.ArrayTypeHandler;
import lombok.Data;
import tk.mybatis.mapper.annotation.ColumnType;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.sql.Timestamp;

/**
 * @author 王艳龙
 * @create 2021-07-13 11:20
 */
@Data
@Table(schema = "basicinfo", name = "tab_star_info")
public class StarModel {

    //艺人id
    private String starid;

    //艺人名称
    private String name;

    //别名
    @ColumnType(column = "alias", typeHandler = ArrayTypeHandler.class)
    private String[] alias;

    //职业
    @ColumnType(column = "occupation", typeHandler = ArrayTypeHandler.class)
    private String[] occupation;

    //国籍
    private String country;

    //地区
    private String area;

    //图片路径
    private String imagesurl;

    //性别
    private String sex;

    //出生日期
    private String birthday;

    //身高
    private String height;

    //体重
    private String weight;

    //血型
    private String bloodtype;

    //民族
    private String nation;

    //学校
    private String school;

    //出生地
    private String born;

    //星座
    private String constellation;

    //兴趣
    private String interest;

    //简介
    private String introduction;

    //主要作品
    @ColumnType(column = "works", typeHandler = ArrayTypeHandler.class)
    private String[] works;

    //获奖信息
    private String awards;

    //唯一名称
    private String uniquename;

    //重复标志：0不重复，1重复
    private Integer repeat;

    //经纪人
    private String agent;

    //经纪人电话
    private String agentphone;

    //经纪公司
    private String brokeragefirm;

    //数据状态 空或者0--未完善； 1-- 已完善
    private String datastate;

    //是否外国人  0：否，1：是
    private Integer foreignersign;

    //创建日期
    private Timestamp createtime;

    //更新日期
    private Timestamp lastupdatetime;

    @Transient
    private String star_up;

    @Transient
    private String ex_up;

}
